package com.xingdata.jjxc.utils;

import com.xingdata.jjxc.utils.callback.ThreadNotifally;

/**
 * 
 * 
 * 项目名称：JJXC_VPN 类名称：ThreadSleep 类描述： 线程等待 创建人：JiangMin 创建时间：2015-7-20 下午3:34:14
 * 修改备注：
 * 
 * @version
 * 
 */
public class ThreadSleep extends Thread {
	private long lTime = 0;
	private ThreadNotifally threadNotifally;

	/**
	 * 等待时间 毫秒
	 * @param time
	 * @param threadNotifally
	 */
	public ThreadSleep(long time, ThreadNotifally threadNotifally) {
		this.lTime = time;
		this.threadNotifally = threadNotifally;
	}

	public void run() {
		try {
			sleep(lTime);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		threadNotifally.beginStart();
	};
}
